//
//  TableViewZuoCell.m
//  MoGuRadio
//
//  Created by 李响 on 15/6/10.
//  Copyright (c) 2015年 mogu.com 蘑菇科技. All rights reserved.
//

#import "TableViewZuoCell.h"
#import "Table.h"
#import "UIImageView+WebCache.h"
@implementation TableViewZuoCell
- (void)dealloc
{
    [_main release];
    [_oneLabel release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.oneLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.oneLabel];
        [_oneLabel release];
        
//        self.comeLabel = [[UILabel alloc] init];
//        [self.contentView addSubview:self.comeLabel];
//        [_comeLabel release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    CGFloat width = self.contentView.frame.size.width;
    CGFloat height = self.contentView.frame.size.height;
    
    self.oneLabel.frame = CGRectMake(width / 6, height / 3, width, height / 2.8);
    
}
- (void)setMain:(Table *)main
{
    if (_main != main) {
        [_main release];
        _main = [main retain];
    }
//    [self.oneImageView sd_setImageWithURL:[NSURL URLWithString:_main.pic]];
    self.oneLabel.font = [UIFont boldSystemFontOfSize:18];
    self.oneLabel.text = _main.kkk;
    self.oneLabel.textColor = [UIColor blackColor];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
